<template>
  <view class="order">
    <view class="order-warp">
      <view
        class="order-warp-model"
        :style="{
          width: `${width}rpx`,
          height: `${height}rpx`,
        }"
      >
        <image
          src="https://kindoucloud.com:8077/api/mongoFile/previewImage/example/65b0ce148253fd140d862d1a"
          mode=""
        />
        <slot name="title"></slot>
        <slot name="content"></slot>
        <slot name="footer"></slot>
        <!-- <view class="title">{{ title }}</view>
        <view class="content">
          {{ content }}
        </view>
        <button
          class="circle-button btn-active"
          style="width: 70%"
          @click="$jump('/pages/index/index', { method: 'reLaunch' })"
        >
          返回首页
        </button> -->
      </view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "标题",
    },
    content: {
      type: String,
      default: "内容",
    },
    width: {
      type: Number,
      default: 400,
    },
    height: {
      type: Number,
      default: 400,
    },
  },
  data() {
    return {};
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.order {
  &-warp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    &-model {
      // width: 630rpx;
      // height: 536rpx;
      margin-bottom: 200rpx;
      background: #ffffff;
      border-radius: 64rpx;
      border: 1px solid #707070;
      position: relative;

      > image {
        width: 182rpx;
        height: 182rpx;
        position: absolute;
        top: -100rpx;
        left: 50%;
        transform: translateX(-50%);
      }
      .title {
        font-size: 40rpx;
        font-weight: bold;
        color: #000000;
        text-align: center;
        margin-top: 100rpx;
      }

      .content {
        margin: 20rpx auto;
        font-size: 28rpx;
        color: #000000;
        text-align: center;
        margin-top: 20rpx;
        white-space: normal;
      }

      > button {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 40rpx;
      }
    }
  }
}
</style>
